package com.pet.web.controller.wechat.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

@ApiModel
public class WxOrderBody {

    @ApiModelProperty(required = true)
    private String openid;

    @ApiModelProperty(value = "采购列表的id列表", required = true)
    @NotEmpty(message = "采购列表的id列表不能为空")
    private List<Long> cartIdList;

    @NotBlank(message = "openid不能为空")
    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public List<Long> getCartIdList() {
        return cartIdList;
    }

    public void setCartIdList(List<Long> cartIdList) {
        this.cartIdList = cartIdList;
    }
}
